package com.kcs.fxmargin.action.form;

import java.math.BigDecimal;

import com.kcs.fxmargin.model.TDealsSum;

public class InquiryMarginActionForm extends FXActionForm {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private String cifNo;
	private String customerName;
	private String marginAccNo;
	private String marginAccName;
	private String date;
	private String action;
	private TDealsSum dealsSum;
	private Boolean cashFlag;
	private Boolean dataNotFound;
	
	public InquiryMarginActionForm() {
		resetExpect();
	}
	
	@Override
	public void resetExpect(){
		cashFlag		= false;
		dataNotFound	= false;
		cifNo			= "";
		customerName	= "";
		marginAccNo		= "";
		marginAccName	= "";
		date			= "";
		action 			= "init";
		dealsSum		= new TDealsSum();
	}
	
	public void resetDealsSum(){
		this.dealsSum.setCustLimit(new BigDecimal(0.00));
		this.dealsSum.setCashBal(new BigDecimal(0.00));
		this.dealsSum.setRealizedPl(new BigDecimal(0.00));
		this.dealsSum.setUnrealizedPl(new BigDecimal(0.00));
		this.dealsSum.setEquityBal(new BigDecimal(0.00));
		this.dealsSum.setInitialMargin(new BigDecimal(0.00));
		this.dealsSum.setExcessAmt(new BigDecimal(0.00));
		this.dealsSum.setMarginLimit(new BigDecimal(0.00));
		this.dealsSum.setMtnMargin(new BigDecimal(0.00));
		this.dealsSum.setMarginCall(new BigDecimal(0.00));
	}
	

	public Boolean getDataNotFound() {
		return dataNotFound;
	}

	public void setDataNotFound(Boolean dataNotFound) {
		this.dataNotFound = dataNotFound;
	}

	public Boolean getCashFlag() {
		return cashFlag;
	}

	public void setCashFlag(Boolean cashFlag) {
		this.cashFlag = cashFlag;
	}

	public TDealsSum getDealsSum() {
		return dealsSum;
	}

	public void setDealsSum(TDealsSum dealsSum) {
		this.dealsSum = dealsSum;
	}

	public String getAction() {
		return action;
	}
	public void setAction(String action) {
		this.action = action;
	}
	public String getCifNo() {
		return cifNo;
	}
	public void setCifNo(String cifNo) {
		this.cifNo = cifNo;
	}
	public String getCustomerName() {
		return customerName;
	}
	public void setCustomerName(String customerName) {
		this.customerName = customerName;
	}
	public String getMarginAccNo() {
		return marginAccNo;
	}
	public void setMarginAccNo(String marginAccNo) {
		this.marginAccNo = marginAccNo;
	}
	public String getMarginAccName() {
		return marginAccName;
	}
	public void setMarginAccName(String marginAccName) {
		this.marginAccName = marginAccName;
	}
	public String getDate() {
		return date;
	}
	public void setDate(String date) {
		this.date = date;
	}

	
}
